-- GENERATED SPELL FOR [Murmur] --


function spell0_18708(pUnit, Event) --@Magnetic Pull,n/a--
pUnit:FullCastSpellOnTarget(33689,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18708', 0, 1)
end

function spell1_18708(pUnit, Event) --@Murmur\'s Touch,n/a--
pUnit:FullCastSpellOnTarget(33711,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18708', 15000, 1)
end

function spell2_18708(pUnit, Event) --@Murmur\'s Touch,n/a--
pUnit:FullCastSpellOnTarget(38794,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18708', 8000, 1)
end

function spell3_18708(pUnit, Event) --@Resonance,Self--
pUnit:FullCastSpellOnTarget(33657,pUnit)
pUnit:RegisterEvent('Sorts_18708', 45000, 1)
end

function spell4_18708(pUnit, Event) --@Sonic Boom,Self--
pUnit:FullCastSpellOnTarget(33923,pUnit)
pUnit:RegisterEvent('Sorts_18708', 5000, 1)
end

function spell5_18708(pUnit, Event) --@Sonic Boom,Self--
pUnit:FullCastSpellOnTarget(38796,pUnit)
pUnit:RegisterEvent('Sorts_18708', 5000, 1)
end

function spell6_18708(pUnit, Event) --@Sonic Shock,n/a--
pUnit:FullCastSpellOnTarget(38797,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18708', 747, 1)
end

function spell7_18708(pUnit, Event) --@Thundering Storm,n/a--
pUnit:FullCastSpellOnTarget(39365,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18708', 810, 1)
end

function Sorts_18708(pUnit, Event)
local choix_sorts_18708 = math.random(0, 7)
if choix_sorts_18708 == 0 then
pUnit:RegisterEvent('spell0_18708', 1, 1)
end
if choix_sorts_18708 == 1 then
pUnit:RegisterEvent('spell1_18708', 1, 1)
end
if choix_sorts_18708 == 2 then
pUnit:RegisterEvent('spell2_18708', 1, 1)
end
if choix_sorts_18708 == 3 then
pUnit:RegisterEvent('spell3_18708', 1, 1)
end
if choix_sorts_18708 == 4 then
pUnit:RegisterEvent('spell4_18708', 1, 1)
end
if choix_sorts_18708 == 5 then
pUnit:RegisterEvent('spell5_18708', 1, 1)
end
if choix_sorts_18708 == 6 then
pUnit:RegisterEvent('spell6_18708', 1, 1)
end
if choix_sorts_18708 == 7 then
pUnit:RegisterEvent('spell7_18708', 1, 1)
end
end

function mob18708_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18708', math.random(1500, 3000), 1)
end

function mob18708_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18708_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18708_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18708, 1, 'mob18708_Action')
RegisterUnitEvent(18708, 2, 'mob18708_Leave')
RegisterUnitEvent(18708, 3, 'mob18708_Kill')
RegisterUnitEvent(18708, 4, 'mob18708_Die')
